package com.opencvjava.zero;

import java.util.ArrayList;
import java.util.List;

public class ImageInfo {
    private List<Unit> units = new ArrayList<>();
    private List<Block> blocks = new ArrayList<>();

    public int blockSize() {
        return this.blocks.size();
    }

    public ImageInfo addBlock(Block block) {
        this.blocks.add(block);
        return this;
    }

    public int unitSize() {
        return this.units.size();
    }

    public ImageInfo addUnit(Unit unit) {
        this.units.add(unit);
        return this;
    }

    public List<Unit> getUnits() {
        return units;
    }

    public ImageInfo setUnits(List<Unit> units) {
        this.units = units;
        return this;
    }

    public List<Block> getBlocks() {
        return blocks;
    }

    public ImageInfo setBlocks(List<Block> blocks) {
        this.blocks = blocks;
        return this;
    }
}
